<?php

/**
 * StatusModel
 *
 * @author yukio
 * @version $Id$
 */

require_once 'Zend/Db/Table/Abstract.php';

class StatusModel extends Zend_Db_Table_Abstract
{
    const REQUEST_WAIT             = 0;
    const REQUEST_ASSIGNED         = 1;
    const REQUEST_DELIVERY         = 2;
    const REQUEST_COMPLETED        = 3;
    const REQUEST_REQUESTER_CANCEL = 4;
    const REQUEST_SUPPORTER_CANCEL = 5;
    
    public static $display = array(-1 => '全て表示',
                                   StatusModel::REQUEST_WAIT => '未確定',
                                   StatusModel::REQUEST_ASSIGNED => '決定',
                                   StatusModel::REQUEST_DELIVERY => '輸送中',
                                   StatusModel::REQUEST_COMPLETED => '完了',
                                   StatusModel::REQUEST_REQUESTER_CANCEL => '支援希望者が取り消し',
                                   StatusModel::REQUEST_SUPPORTER_CANCEL => '支援者が取り消し');

    protected $_name = 'support_status';
    protected $_primary = array('req_id', 'update_datetime');
}